package chtp02;


import java.math.BigInteger;
import java.util.Scanner;
public class Main4 {
	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		BigInteger sum=new BigInteger("0");
		String a=input.next();
		
		
			while(!a.equalsIgnoreCase("e")&&!a.equalsIgnoreCase("E")){
				BigInteger b =new BigInteger(a);
				sum=sum.add(b);
			
				a=input.next();
			}
			
			System.out.println(sum);
		
		}
		


	}
